package com.ktjiaoyu.server.config.security;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class SorsConfig implements WebMvcConfigurer {
//    @Override
//    public void addCorsMappings(CorsRegistry registry) {
//        registry.addMapping("/**").
//                allowCredentials(true).
//                allowedMethods("GET", "POST", "PUT").   //允许GET,POST
//                allowedHeaders("*");     //允许任何头
//    }
}
